package impl;

import components.QuasiComponentBehavior;
import components.QuasiComponentCharacteristics;
import components.QuasiComponentCreate;


public class CreateImpl extends QuasiComponentCreate {
  
	 private final Medium medium;
	  private final AgentRef me;

	  public CreateImpl(Medium _medium, AgentRef _me) {
	    this.medium = _medium;
	    me=_me;
	  }
	  
	  public AgentRef create(QuasiComponentCharacteristics c, QuasiComponentBehavior beh) {
	    return medium.create(c,beh);
	  }
	  
	  
	  public void start() {
	  }

	  
	public AgentRef create(PatternMatchingCharacteristics c,
			PatternMatchingBehavior beh) {
		// TODO Auto-generated method stub
		return null;
	}

	
	public void die() {
	    medium.disconnect(me);
	    stopLifecycle();
	  }
	  

		public AgentRef getId() {
			// TODO Auto-generated method stub
			return me;
		}

	

}
